Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Pliny::Helpers::ZuluTime to Serializers::Base #322

Merged
merged 3 commits into from
Dec 14, 2017

Conversation

ransombriggs
Copy link

@gudmundur this adds a ZuluTime module to the pliny library that is mixed into Serializers::Base to provide a zulu_time method to help serialize dates properly. One of the apps I am extracting this out of uses DateTime instances which do not have a getutc until active_support/core_ext/numeric/time is mixed in. Should I add a check to see if time responds to getutc and throw a more helpful error if it is not defined?

@gudmundur
Copy link
Member

Nice work @ransombriggs. The only thing missing that I notice is updating the generators so that new serializers will use this rather than #iso8601. Once that's in I think this is good to go.

@brandur Do you have comments on this?

@ransombriggs
Copy link
Author

@gudmundur pushed up serializer template changes in 4a30e49

@gudmundur gudmundur merged commit 6783c4c into master Dec 14, 2017
@gudmundur gudmundur deleted the add-zulu-time-helpers branch December 14, 2017 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants